package com.vincent.dao;

import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Vincent on 2014/12/29.
 */
@Repository("adminRoleDao")
public class AdminRoleDao {
    @Resource
    private AdminRoleMapper adminRoleMapper;

    public List<Integer> selectByAdminId(int adminId){
        return adminRoleMapper.selectRoleIdByAdminId(adminId);
    }

    public void deleteByRoleIds(Integer []ids){
        adminRoleMapper.deleteByRoleIds(ids);
    }
}
